package com.reflect.demo;

public class Animal {
	private String name;
	
	public String address;
	
	private Persion p;
	
	
	public Animal(){
		address = "中国";
	}
	
	protected Animal(String name){
		//this();
		this.name = name;
	}
	
	Animal(String name, String address){
		this.name = name;
		this.address = address;
	}
	
	public void display(){
		System.out.println("animal animal");
	}
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}

	public Persion getP() {
		return p;
	}

	public void setP(Persion p) {
		this.p = p;
	}
	

}
